.class public Lcom/xingbook/park/ui/ad;
.super Landroid/widget/LinearLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/LinearLayout;

.field private b:Landroid/widget/LinearLayout;

.field private c:Landroid/widget/LinearLayout;

.field private d:Landroid/view/View;

.field private e:Landroid/view/View;

.field private f:Landroid/view/View;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;

.field private i:Landroid/widget/TextView;

.field private j:Lcom/xingbook/b/n;

.field private k:Lcom/xingbook/park/ui/ak;

.field private l:Lcom/xingbook/park/receiver/RecommendReceiver;

.field private m:Lcom/xingbook/park/receiver/CollectReceiver;

.field private n:Lcom/xingbook/park/ui/al;


# direct methods
.method public constructor <init>(Landroid/content/Context;FLcom/xingbook/park/ui/ak;I)V
    .locals 10
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    new-instance v0, Lcom/xingbook/park/ui/al;

    invoke-direct {v0, p0}, Lcom/xingbook/park/ui/al;-><init>(Lcom/xingbook/park/ui/ad;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/ad;->n:Lcom/xingbook/park/ui/al;

    iput-object p3, p0, Lcom/xingbook/park/ui/ad;->k:Lcom/xingbook/park/ui/ak;

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/ad;->setOrientation(I)V

    const/16 v0, 0x11

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/ad;->setGravity(I)V

    invoke-virtual {p0, p0}, Lcom/xingbook/park/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const/high16 v0, 0x4120

    mul-float/2addr v0, p2

    float-to-int v0, v0

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x10

    if-lt v1, v2, :cond_0

    const/4 v1, 0x0

    const v2, 0xffffff

    invoke-static {v1, v2, v0, p4}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/ad;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    const/high16 v0, 0x4180

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v1, 0x41a0

    mul-float/2addr v1, p2

    float-to-int v1, v1

    const/high16 v2, 0x41c0

    mul-float/2addr v2, p2

    float-to-int v2, v2

    const/high16 v3, 0x4258

    mul-float/2addr v3, p2

    float-to-int v3, v3

    const v4, 0x42066666

    mul-float/2addr v4, p2

    new-instance v5, Landroid/widget/LinearLayout;

    invoke-direct {v5, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    const/4 v6, 0x1

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    const/16 v6, 0x11

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setGravity(I)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual {v5, v6, v1, v7, v1}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    const v6, 0x7f0a0056

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setId(I)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v5, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v6, -0x2

    const/4 v7, -0x2

    invoke-direct {v5, v6, v7}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v6, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v6, v5}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v5}, Lcom/xingbook/park/ui/ad;->addView(Landroid/view/View;)V

    new-instance v5, Landroid/view/View;

    invoke-direct {v5, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/xingbook/park/ui/ad;->d:Landroid/view/View;

    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v5, v3, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput v2, v5, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    iput v2, v5, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iget-object v6, p0, Lcom/xingbook/park/ui/ad;->d:Landroid/view/View;

    invoke-virtual {v6, v5}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    iget-object v6, p0, Lcom/xingbook/park/ui/ad;->d:Landroid/view/View;

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v5, Landroid/widget/TextView;

    invoke-direct {v5, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/xingbook/park/ui/ad;->g:Landroid/widget/TextView;

    const/4 v5, 0x2

    new-array v5, v5, [[I

    const/4 v6, 0x0

    const/4 v7, 0x1

    new-array v7, v7, [I

    const/4 v8, 0x0

    const v9, 0x10100a1

    aput v9, v7, v8

    aput-object v7, v5, v6

    const/4 v6, 0x1

    const/4 v7, 0x0

    new-array v7, v7, [I

    aput-object v7, v5, v6

    const/4 v6, 0x2

    new-array v6, v6, [I

    fill-array-data v6, :array_0

    new-instance v7, Landroid/content/res/ColorStateList;

    invoke-direct {v7, v5, v6}, Landroid/content/res/ColorStateList;-><init>([[I[I)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->g:Landroid/widget/TextView;

    invoke-virtual {v5, v7}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->g:Landroid/widget/TextView;

    const/4 v6, 0x0

    invoke-virtual {v5, v6, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->g:Landroid/widget/TextView;

    const/16 v6, 0x11

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setGravity(I)V

    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v6, -0x2

    const/4 v8, -0x2

    invoke-direct {v5, v6, v8}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v6, p0, Lcom/xingbook/park/ui/ad;->g:Landroid/widget/TextView;

    invoke-virtual {v6, v5}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    iget-object v6, p0, Lcom/xingbook/park/ui/ad;->g:Landroid/widget/TextView;

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v5, Landroid/widget/LinearLayout;

    invoke-direct {v5, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    const/4 v6, 0x1

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    const/16 v6, 0x11

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setGravity(I)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    const/4 v6, 0x0

    const/4 v8, 0x0

    invoke-virtual {v5, v6, v1, v8, v1}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    const v6, 0x7f0a0057

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setId(I)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v5, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v6, -0x2

    const/4 v8, -0x2

    invoke-direct {v5, v6, v8}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput v0, v5, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    iget-object v6, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v6, v5}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v5}, Lcom/xingbook/park/ui/ad;->addView(Landroid/view/View;)V

    new-instance v5, Landroid/view/View;

    invoke-direct {v5, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/xingbook/park/ui/ad;->e:Landroid/view/View;

    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v5, v3, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput v2, v5, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    iput v2, v5, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iget-object v6, p0, Lcom/xingbook/park/ui/ad;->e:Landroid/view/View;

    invoke-virtual {v6, v5}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    iget-object v6, p0, Lcom/xingbook/park/ui/ad;->e:Landroid/view/View;

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v5, Landroid/widget/TextView;

    invoke-direct {v5, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/xingbook/park/ui/ad;->h:Landroid/widget/TextView;

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->h:Landroid/widget/TextView;

    invoke-virtual {v5, v7}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->h:Landroid/widget/TextView;

    const/4 v6, 0x0

    invoke-virtual {v5, v6, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->h:Landroid/widget/TextView;

    const/16 v6, 0x11

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setGravity(I)V

    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v6, -0x2

    const/4 v8, -0x2

    invoke-direct {v5, v6, v8}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v6, p0, Lcom/xingbook/park/ui/ad;->h:Landroid/widget/TextView;

    invoke-virtual {v6, v5}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    iget-object v6, p0, Lcom/xingbook/park/ui/ad;->h:Landroid/widget/TextView;

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v5, Landroid/widget/LinearLayout;

    invoke-direct {v5, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    const/4 v6, 0x1

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    const/16 v6, 0x11

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setGravity(I)V

    iget-object v5, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    const/4 v6, 0x0

    const/4 v8, 0x0

    invoke-virtual {v5, v6, v1, v8, v1}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    iget-object v1, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    const v5, 0x7f0a0058

    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->setId(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v1, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v5, -0x2

    const/4 v6, -0x2

    invoke-direct {v1, v5, v6}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput v0, v1, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/ad;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/view/View;

    invoke-direct {v0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/ad;->f:Landroid/view/View;

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v3, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iget-object v1, p0, Lcom/xingbook/park/ui/ad;->f:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/park/ui/ad;->f:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/ad;->i:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->i:Landroid/widget/TextView;

    invoke-virtual {v0, v7}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->i:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->i:Landroid/widget/TextView;

    const/16 v1, 0x11

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setGravity(I)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v1, -0x2

    const/4 v2, -0x2

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v1, p0, Lcom/xingbook/park/ui/ad;->i:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/park/ui/ad;->i:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    return-void

    :cond_0
    const/4 v1, 0x0

    const v2, 0xffffff

    invoke-static {v1, v2, v0, p4}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/ad;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_0

    :array_0
    .array-data 0x4
        0xcct 0xcct 0xcct 0xfft
        0xfft 0xfft 0xfft 0xfft
    .end array-data
.end method

.method public static a(Landroid/content/Context;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/ak;)Lcom/xingbook/park/ui/ad;
    .locals 1

    const/high16 v0, 0x4d00

    invoke-static {p0, p1, p2, p3, v0}, Lcom/xingbook/park/ui/ad;->a(Landroid/content/Context;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/ak;I)Lcom/xingbook/park/ui/ad;

    move-result-object v0

    return-object v0
.end method

.method public static a(Landroid/content/Context;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/ak;I)Lcom/xingbook/park/ui/ad;
    .locals 3

    const/4 v2, -0x2

    new-instance v0, Lcom/xingbook/park/ui/ad;

    invoke-direct {v0, p0, p2, p3, p4}, Lcom/xingbook/park/ui/ad;-><init>(Landroid/content/Context;FLcom/xingbook/park/ui/ak;I)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v2, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0xb

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/16 v2, 0xf

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/high16 v2, 0x4120

    mul-float/2addr v2, p2

    float-to-int v2, v2

    iput v2, v1, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    invoke-virtual {v0, v1}, Lcom/xingbook/park/ui/ad;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    return-object v0
.end method

.method static synthetic a(Lcom/xingbook/park/ui/ad;)Lcom/xingbook/park/ui/al;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->n:Lcom/xingbook/park/ui/al;

    return-object v0
.end method

.method private a()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->j:Lcom/xingbook/b/n;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->t()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/park/d/n;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->d:Landroid/view/View;

    const v1, 0x7f02029d

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->g:Landroid/widget/TextView;

    const-string v1, "\u5df2\u63a8\u8350"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->d:Landroid/view/View;

    const v1, 0x7f0202a0

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->g:Landroid/widget/TextView;

    const-string v1, "\u63a8\u8350"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method private b()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->j:Lcom/xingbook/b/n;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->t()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/park/d/a;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->e:Landroid/view/View;

    const v1, 0x7f02029b

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->h:Landroid/widget/TextView;

    const-string v1, "\u5df2\u6536\u85cf"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->e:Landroid/view/View;

    const v1, 0x7f02029e

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->h:Landroid/widget/TextView;

    const-string v1, "\u6536\u85cf"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method static synthetic b(Lcom/xingbook/park/ui/ad;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/park/ui/ad;->a()V

    return-void
.end method

.method private c()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->j:Lcom/xingbook/b/n;

    instance-of v0, v0, Lcom/xingbook/audio/b/a;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->j:Lcom/xingbook/b/n;

    check-cast v0, Lcom/xingbook/audio/b/a;

    invoke-virtual {v0}, Lcom/xingbook/audio/b/a;->a()Z

    move-result v0

    :goto_0
    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->f:Landroid/view/View;

    const v1, 0x7f02029d

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->i:Landroid/widget/TextView;

    const-string v1, "\u5df2\u4e0b\u8f7d"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    :goto_1
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->j:Lcom/xingbook/b/n;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->ag()I

    move-result v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->j:Lcom/xingbook/b/n;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->ag()I

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x1

    goto :goto_0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->f:Landroid/view/View;

    const v1, 0x7f0202a0

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->i:Landroid/widget/TextView;

    const-string v1, "\u4e0b\u8f7d"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method

.method static synthetic c(Lcom/xingbook/park/ui/ad;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/park/ui/ad;->b()V

    return-void
.end method


# virtual methods
.method public a(Lcom/xingbook/b/n;ZZZ)V
    .locals 3

    const/16 v2, 0x8

    const/4 v1, 0x0

    iput-object p1, p0, Lcom/xingbook/park/ui/ad;->j:Lcom/xingbook/b/n;

    if-nez p2, :cond_0

    if-nez p3, :cond_0

    if-eqz p4, :cond_4

    :cond_0
    if-eqz p1, :cond_4

    if-eqz p2, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-direct {p0}, Lcom/xingbook/park/ui/ad;->a()V

    :goto_0
    if-eqz p3, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-direct {p0}, Lcom/xingbook/park/ui/ad;->b()V

    :goto_1
    if-eqz p4, :cond_3

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-direct {p0}, Lcom/xingbook/park/ui/ad;->c()V

    :goto_2
    invoke-virtual {p0, v1}, Lcom/xingbook/park/ui/ad;->setVisibility(I)V

    :goto_3
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1

    :cond_3
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_2

    :cond_4
    invoke-virtual {p0, v2}, Lcom/xingbook/park/ui/ad;->setVisibility(I)V

    goto :goto_3
.end method

.method protected onAttachedToWindow()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->l:Lcom/xingbook/park/receiver/RecommendReceiver;

    if-nez v0, :cond_0

    new-instance v0, Lcom/xingbook/park/receiver/RecommendReceiver;

    new-instance v1, Lcom/xingbook/park/ui/ai;

    invoke-direct {v1, p0}, Lcom/xingbook/park/ui/ai;-><init>(Lcom/xingbook/park/ui/ad;)V

    invoke-direct {v0, v1}, Lcom/xingbook/park/receiver/RecommendReceiver;-><init>(Lcom/xingbook/park/receiver/b;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/ad;->l:Lcom/xingbook/park/receiver/RecommendReceiver;

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->l:Lcom/xingbook/park/receiver/RecommendReceiver;

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ad;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/park/receiver/RecommendReceiver;->a(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->m:Lcom/xingbook/park/receiver/CollectReceiver;

    if-nez v0, :cond_1

    new-instance v0, Lcom/xingbook/park/receiver/CollectReceiver;

    new-instance v1, Lcom/xingbook/park/ui/aj;

    invoke-direct {v1, p0}, Lcom/xingbook/park/ui/aj;-><init>(Lcom/xingbook/park/ui/ad;)V

    invoke-direct {v0, v1}, Lcom/xingbook/park/receiver/CollectReceiver;-><init>(Lcom/xingbook/park/receiver/a;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/ad;->m:Lcom/xingbook/park/receiver/CollectReceiver;

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->m:Lcom/xingbook/park/receiver/CollectReceiver;

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ad;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/park/receiver/CollectReceiver;->a(Landroid/content/Context;)V

    invoke-super {p0}, Landroid/widget/LinearLayout;->onAttachedToWindow()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/park/ui/ad;->k:Lcom/xingbook/park/ui/ak;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/park/ui/ad;->k:Lcom/xingbook/park/ui/ak;

    invoke-interface {v1, v0}, Lcom/xingbook/park/ui/ak;->a(I)Z

    move-result v1

    if-eqz v1, :cond_0

    :goto_0
    return-void

    :cond_0
    packed-switch v0, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->j:Lcom/xingbook/b/n;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->s()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/park/ui/ad;->j:Lcom/xingbook/b/n;

    invoke-virtual {v1}, Lcom/xingbook/b/n;->t()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/xingbook/park/d/n;->a(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    new-instance v2, Lcom/xingbook/park/ui/ag;

    invoke-direct {v2, p0}, Lcom/xingbook/park/ui/ag;-><init>(Lcom/xingbook/park/ui/ad;)V

    invoke-static {v0, v1, v2}, Lcom/xingbook/park/d/n;->b(ILjava/lang/String;Lcom/xingbook/park/d/q;)V

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->j:Lcom/xingbook/b/n;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->s()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/park/ui/ad;->j:Lcom/xingbook/b/n;

    invoke-virtual {v1}, Lcom/xingbook/b/n;->t()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/xingbook/park/d/a;->a(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    new-instance v2, Lcom/xingbook/park/ui/ae;

    invoke-direct {v2, p0}, Lcom/xingbook/park/ui/ae;-><init>(Lcom/xingbook/park/ui/ad;)V

    invoke-static {v0, v1, v2}, Lcom/xingbook/park/d/a;->b(ILjava/lang/String;Lcom/xingbook/park/d/d;)V

    goto :goto_0

    :cond_1
    new-instance v2, Lcom/xingbook/park/ui/af;

    invoke-direct {v2, p0}, Lcom/xingbook/park/ui/af;-><init>(Lcom/xingbook/park/ui/ad;)V

    invoke-static {v0, v1, v2}, Lcom/xingbook/park/d/a;->a(ILjava/lang/String;Lcom/xingbook/park/d/d;)V

    goto :goto_0

    :cond_2
    new-instance v2, Lcom/xingbook/park/ui/ah;

    invoke-direct {v2, p0}, Lcom/xingbook/park/ui/ah;-><init>(Lcom/xingbook/park/ui/ad;)V

    invoke-static {v0, v1, v2}, Lcom/xingbook/park/d/n;->a(ILjava/lang/String;Lcom/xingbook/park/d/q;)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->n:Lcom/xingbook/park/ui/al;

    const/4 v1, 0x0

    const-string v2, "\u6682\u672a\u5f00\u653e\u8be5\u529f\u80fd\uff01"

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/park/ui/al;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0a0056
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method protected onDetachedFromWindow()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->l:Lcom/xingbook/park/receiver/RecommendReceiver;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->l:Lcom/xingbook/park/receiver/RecommendReceiver;

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ad;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/park/receiver/RecommendReceiver;->b(Landroid/content/Context;)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->m:Lcom/xingbook/park/receiver/CollectReceiver;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/ad;->m:Lcom/xingbook/park/receiver/CollectReceiver;

    invoke-virtual {p0}, Lcom/xingbook/park/ui/ad;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/park/receiver/CollectReceiver;->b(Landroid/content/Context;)V

    :cond_1
    invoke-super {p0}, Landroid/widget/LinearLayout;->onDetachedFromWindow()V

    return-void
.end method
